package com.syh.jn.scm.infrastructure.repository.model.base.logistics;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 物流服务地址
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_LOGISTICS_ADDRESS")
@EqualsAndHashCode(callSuper = true)
public class LogisticsAddressModel extends SuperBusinessModel {
  /**
   * 物流公司id
   */
  @Column(name = "LOGISTICS_ID", columnDefinition = "bigint COMMENT '物流公司id'")
  private Long logisticsId;
  /**
   * 地址省 市 区
   */
  @Column(name = "AREA", columnDefinition = "varchar(300) COMMENT '地址省 市 区 使用[广东省,广州市,海珠区]格式保存'")
  private String area;
  /**
   * 地址
   */
  @Column(name = "ADDRESS", columnDefinition = "varchar(300) COMMENT '单位地址'")
  private String address;
  /**
   * 地区编号
   */
  @Column(name = "AREA_CODE", columnDefinition = "varchar(50) COMMENT '地区编号'")
  private String areaCode;
  /**
   * 联系人
   */
  @Column(name = "CONTACTS", columnDefinition = "varchar(50) COMMENT '联系人'")
  private String contacts;
  /**
   * 联系手机
   */
  @Column(name = "MOBILE", columnDefinition = "varchar(50) COMMENT '联系手机'", length = 50)
  private String mobile;

}
